package com.metrictracker.model;

import javax.persistence.Id;
import javax.persistence.Transient;

import com.googlecode.objectify.Key;

public class Metric {

	@Id Long id;
	String name;
	
	@Transient String doNotPersist;

	@SuppressWarnings("unused") 
	private Metric() {}

	public Metric(String name)
	{
		this.name = name;
	}
	
	public void setName (String name) {
		this.name = name;
	}
	
	public String toString () {
		return name;
	}
	
	@Transient
	public
	Key<Metric> getKey() {
	   return new Key<Metric>(Metric.class, id);
	}
	
	public  String getName () {
		return name;
	}
	
	
}
